<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>爪哇 new Vue()</title>
</head>
<body>
  <div id="app">
    <p>{{ msg }}</p>
    <h1 v-text="msg"></h1>
    <input type="text" v-model="msg"/>
    <div v-on:click="click_1">v-on:click</div>
    <div @click="click_2">@click</div>
  </div>
  <script src="./js/vue.js"></script>
  <script>
    const vm = new Vue({
      el:'#app',
      data:{
        msg: 'Hello Wrold !'
      },
      methods:{
        click_1(){
          console.log('click_1')
          this.msg = 'click_11111111111'
          console.log(this)
        },
        click_2(){
          console.log('click_2')
          this.msg = 'click_2222'
        },
      }
    })
    console.log(vm)
  </script>
</body>
</html>